package cc.comac.mom.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import cc.comac.mom.api.QualityQarTaskQueryService;
import cc.comac.mom.bean.QualityQarTaskQuery;
import cc.comac.mom.datahandlers.entity.QualityQarTaskQueryDataHandler;
import cc.comac.mom.util.ResultBean;

@RestController
@Service
public class QualityQarTaskQueryServiceImpl implements QualityQarTaskQueryService{

	@Autowired
	private QualityQarTaskQueryDataHandler qualityQarTaskQueryDataHandler;
	@Override
	public ResultBean selectByFields(@RequestBody QualityQarTaskQuery qualityQarTaskQuery) {
		ResultBean selectByFields = qualityQarTaskQueryDataHandler.selectByFields(qualityQarTaskQuery);
		return selectByFields;
	}
	@Override
	public ResultBean qarTaskMerge(@RequestBody List<QualityQarTaskQuery> list) {
		ResultBean qarTaskMerge = qualityQarTaskQueryDataHandler.qarTaskMerge(list);
		return qarTaskMerge;
	}
	@Override
	public ResultBean qarTaskSingleInsert(@RequestBody List<QualityQarTaskQuery> list) {
		ResultBean qarTaskSingleInsert = qualityQarTaskQueryDataHandler.qarTaskSingleInsert(list);
		return qarTaskSingleInsert;
	}
	@Override
	public ResultBean selectMyselfByFields(@RequestBody QualityQarTaskQuery qualityQarTaskQuery) {
		ResultBean selectMyselfByFields = qualityQarTaskQueryDataHandler.selectMyselfByFields(qualityQarTaskQuery);
		return selectMyselfByFields;
	}

}
